package com.molyfun.parents.dao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:12/20/16.
 * 单聊会话，服务器无法保存，放在本地数据库
 *
 *
 *  String teamId, String teamConversionId, int teamMemberCount, String teamName, String teamLiveState
 *
 */
@Entity
public class SingleChatDB {
    @Id
    private Long id;
    @Unique
    private String conversationid;

    /**
        腾讯聊天im账号id，区分不同用户的聊天数据
     */
    private String txuserid;

    private String cover;

    private String name;

    //单聊中使用 1:家长 2:老师
    private String targettype;

    //单聊中保存用户id
    private String userId;

    //小组中保存小组id
    private String teamId;

    //小组人员数
    private int teamMemberCount;

    //小组直播状态
    private String teamLiveState;

    private int unReadMsgCount;

    private boolean isTeam;

    private long lastMsgTime;

    //如果是群组，会有用户数
    private int userCount;

    private String type;// group小组 class班级

    private int rule;//0 都没有，1 评估有 2 测评有 3评估和测评都有

    @Generated(hash = 456750776)
    public SingleChatDB(Long id, String conversationid, String txuserid, String cover, String name,
            String targettype, String userId, String teamId, int teamMemberCount, String teamLiveState,
            int unReadMsgCount, boolean isTeam, long lastMsgTime, int userCount, String type,
            int rule) {
        this.id = id;
        this.conversationid = conversationid;
        this.txuserid = txuserid;
        this.cover = cover;
        this.name = name;
        this.targettype = targettype;
        this.userId = userId;
        this.teamId = teamId;
        this.teamMemberCount = teamMemberCount;
        this.teamLiveState = teamLiveState;
        this.unReadMsgCount = unReadMsgCount;
        this.isTeam = isTeam;
        this.lastMsgTime = lastMsgTime;
        this.userCount = userCount;
        this.type = type;
        this.rule = rule;
    }

    @Generated(hash = 1240050338)
    public SingleChatDB() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConversationid() {
        return this.conversationid;
    }

    public void setConversationid(String conversationid) {
        this.conversationid = conversationid;
    }

    public String getTxuserid() {
        return this.txuserid;
    }

    public void setTxuserid(String txuserid) {
        this.txuserid = txuserid;
    }

    public String getCover() {
        return this.cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTargettype() {
        return this.targettype;
    }

    public void setTargettype(String targettype) {
        this.targettype = targettype;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTeamId() {
        return this.teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public int getTeamMemberCount() {
        return this.teamMemberCount;
    }

    public void setTeamMemberCount(int teamMemberCount) {
        this.teamMemberCount = teamMemberCount;
    }

    public String getTeamLiveState() {
        return this.teamLiveState;
    }

    public void setTeamLiveState(String teamLiveState) {
        this.teamLiveState = teamLiveState;
    }

    public int getUnReadMsgCount() {
        return this.unReadMsgCount;
    }

    public void setUnReadMsgCount(int unReadMsgCount) {
        this.unReadMsgCount = unReadMsgCount;
    }

    public boolean getIsTeam() {
        return this.isTeam;
    }

    public void setIsTeam(boolean isTeam) {
        this.isTeam = isTeam;
    }

    public long getLastMsgTime() {
        return this.lastMsgTime;
    }

    public void setLastMsgTime(long lastMsgTime) {
        this.lastMsgTime = lastMsgTime;
    }

    public int getUserCount() {
        return this.userCount;
    }

    public void setUserCount(int userCount) {
        this.userCount = userCount;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getRule() {
        return this.rule;
    }

    public void setRule(int rule) {
        this.rule = rule;
    }


}
